<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the callback functions for a user-defined procedural storage handler</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mysqlnd-qc-set-user-handlers" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqlnd_qc_set_user_handlers</h1>
  <p class="verinfo">(PECL mysqlnd_qc &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">mysqlnd_qc_set_user_handlers</span> &mdash; <span class="dc-title">Sets the callback functions for a user-defined procedural storage handler</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.mysqlnd-qc-set-user-handlers-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   
   <span class="methodname"><strong>mysqlnd_qc_set_user_handlers</strong></span>
    ( <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$get_hash</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$find_query_in_cache</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$return_to_cache</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$add_query_to_cache_if_not_exists</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$query_is_select</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$update_query_run_time_stats</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$get_stats</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$clear_cache</code>
   </span>
   ) : <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Sets the callback functions for a user-defined procedural storage handler.
  </p>



 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysqlnd-qc-set-user-handlers-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <code class="parameter">get_hash</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>get_hash</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">find_query_in_cache</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>find_in_cache</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">return_to_cache</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>return_to_cache</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">add_query_to_cache_if_not_exists</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>add_query_to_cache_if_not_exists</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">query_is_select</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>query_is_select</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">update_query_run_time_stats</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>update_query_run_time_stats</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">get_stats</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>get_stats</em> functionality.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">clear_cache</code>
    </dt>

    <dd>

     <p class="para">
      Name of the user function implementing the storage handler
      <em>clear_cache</em> functionality.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysqlnd-qc-set-user-handlers-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns TRUE on success or FALSE on FAILURE.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysqlnd-qc-set-user-handlers-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member">
     <a href="mysqlnd_qc.set_user_handlers.html" class="link">Procedural user-defined storage handler example</a>
    </li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>